Endpoint interface

An endpoint interface, also known as a service endpoint interface (SEI), is a term used in Java Platform, Enterprise Edition when exposing Enterprise JavaBeans as a Web service (see also Service Implementation Bean (SIB)). It is annotated with @WebService and is a component interface, which declares all the abstract methods that are exposed to the client. As it extends the java.rmi.Remote interface, all methods must throw the RemoteException.[1] A Web service client accesses a stateless session bean through the bean's Web service endpoint interface. Like a remote interface, a Web service endpoint interface defines the business methods of the bean.

In contrast to a remote interface, a Web service endpoint interface is not accompanied by a home interface, which defines the bean's life-cycle methods. The only methods of the bean that may be invoked by a Web service client are the business methods that are defined in the Web service endpoint interface.

The methods of an endpoint interface for a Web service are implemented in a session bean class that is stateless.[1]

References

  1. ^ a b "What is a web service endpoint interface?". http://www.ucertify.com/: uCertify. http://www.ucertify.com/article/what-is-a-web-service-endpoint-interface.html. Retrieved 2010-03-02. "A web service endpoint interface is an interface annotated with the @WebService annotation. It is a component interface that declares the abstract methods to be exposed to the clients. The web service endpoint interface extends the java.rmi.Remote interface, and all the methods of the interface must throw the RemoteException. The methods of a web service endpoint interface are implemented in a stateless session bean class. However, the methods of the class are not required to throw any RemoteException." 

External links